 <div ng-controller="GetElequanlistCtrl">
 <!-- 头部 -->
 	<div class="panel panel-default">
	 	<div class="panel-body" style="padding-top: 0;padding-bottom: 0;">
	 		<div class="nav navbar-nav m-t">	            
	            <span><b>监控中心</b></span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>电量监控</b> </span>
	            <i class="fa fa-angle-right" style="font-size:20px"></i>
	            <span><b>电量监控列表</b></span> 
	         </div>
	        <!-- nabar right -->
	        <ul class="nav navbar-nav navbar-right">          
	          <li class="dropdown" dropdown>
	            <a href class="dropdown-toggle clear" dropdown-toggle>
	              <span class="thumb-sm avatar pull-right m-t-n-sm m-b-n-sm m-l-sm">
	                <img src="img/a0.jpg" alt="...">
	                <i class="on md b-white bottom"></i>
	              </span>
	              <span class="hidden-sm hidden-md"><b>{{namedata}}</b></span> <b class="caret"></b>
	            </a>
	            <!-- dropdown -->
	            <ul class="dropdown-menu animated fadeInRight w">  
	              <li>
	                <a ui-sref="app.user.info">用户信息</a>
	              </li>       
	              <li class="divider"></li>
	              <li>
	                <a ui-sref="access.signin" ng-click="logout()">登出</a>
	              </li>
	            </ul>
	            <!-- / dropdown -->
	          </li>
	        </ul>
	 	</div>
	</div>
<div class="panel m-t-n-md">
	<div class="panel-body" style="padding-top: 5px;padding-bottom:5px">
		<div class="row">
			<div class="col-md-3">
				<select class="btn-rounded" style="padding: 5px 10px;font-weight: bold;background: rgb(245,245,245);width: 50%" ng-model="b.key">
					<option value="">--请选择top参数--</option>
					<option value="current">实时电流</option>
					<option value="voltage">实时电压</option>
					<option value="power">功率</option>
					<option value="total_power">总功率</option>
				</select>				
				<a class="btn btn-sm btn-default btn-rounded" style="border-color:rgb(107,166,226);background: 0 0; font-weight: bold;color: rgb(107,166,226) !important;width: 20%" ui-sref="access.monitortopdata({layerdata:b.school_name+','+b.buildingtype+','+b.building_name+','+b.layer_name,key:b.key})" target='_blank'>显示</a>
			</div>
			<div class="col-md-2 " >
						
					<select class="form-control btn-rounded" style="padding: 5px 10px;font-weight: bold;background: rgb(245,245,245)" ng-model="b.school_name" ng-options="key as key for (key,value) in mmData" ng-change="b.buildingtype='';b.building_name='';b.layer_name='';">	                           
	                </select>
	          
			</div>
			<div class="col-md-2">				
					<select class="form-control btn-rounded" ng-model="b.buildingtype" style="padding: 5px 10px;font-weight: bold;background: rgb(245,245,245)"  ng-change="b.building_name='';b.layer_name='';">
		                <option value="">所有类型</option>
		                <option ng-if="key!='school_id'&&key!='school_name'&&key!='所有类型'" ng-repeat="(key,value) in mmData[b.school_name]" value="{{key}}+{{mmData[b.school_name].school_id}}">{{key}}</option >
		            </select>
			</div>
			<div class="col-md-2">
				
				<select class="form-control btn-rounded" ng-model="b.building_name" style="padding: 5px 10px;font-weight: bold;background: rgb(245,245,245)" ng-options="key as key for (key,value) in mmData[b.school_name][b.buildingtype.split('+')[0]]" ng-change="b.layer_name='';" ng-if="key!='所有楼'">
                 	<option value="">所有楼</option>                  
                </select>
			</div>
			<div class="col-md-2">
				
				<select class="form-control btn-rounded" ng-model="b.layer_name" style="padding: 5px 10px;font-weight: bold;background: rgb(245,245,245)">
                  <option value="">所有层</option>
                  <!-- <option value="{{mmData[b.school_name][b.buildingtype.split('+')[0]][b.building_name].campus_id}}+所有层" ng-if="value!=''">所有层</option> -->
                  <option ng-if="value!='所有层'"  ng-repeat="(key,value) in mmData[b.school_name][b.buildingtype.split('+')[0]][b.building_name].layers" value="{{value.layer_name}}+{{mmData[b.school_name][b.buildingtype.split('+')[0]][b.building_name].campus_id}}+{{value.layer_id}}">                
                    {{value.layer_name}}
                  </option>
                  
                </select>                
			</div>
			<div class="col-md-1">
				<button class="btn btn-sm btn-default btn-rounded m-t-xs" style="border-color:rgb(107,166,226);background: 0 0; font-weight: bold;color: rgb(107,166,226) !important;width: 100%" ng-click="getlist()">确定</button>
			</div>
					
				
					
		</div>
	</div>
</div>
<div class="panel panel-default m-t-n-md">
	<div class="panel-body">
		
		<table class="table" style="border: none">
			<thead>
				<tr>
					<th>名称</th>
					<th>设备ID</th>
					<th>实时电压</th>
					<th>实时电流</th>
					<th>实时功率</th>
					<th>总电量</th>
					<th>限制功率</th>
					<th>当前状态</th>
					<th>在线状态</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="aaData in aaData">
					<td>
						<a ui-sref="app.monitor.selectricdetail({roomid:aaData.room_id})" style="color: rgb(107,166,226);">{{aaData.name}}</a>
					</td>
					<td>
						{{aaData.equipment_id}}
					</td>
					<td>
						{{aaData.voltage}}
					</td>
					<td>
						{{aaData.current}}
					</td>
					<td>
						{{aaData.power}}
					</td>
					<td>
						{{aaData.total_power}}
					</td>
					<td>
						{{aaData.max_power}}
					</td>
					<td>
						{{aaData.use_status}}
					</td>
					<td>
						{{aaData.equipment_status}}
					</td>
				</tr>
				
			</tbody>
		</table>


		<div style="text-align: center;">
			<pagination boundary-links="false" total-items="totalItems"
		        ng-model="currentPage" class="pagination-sm embed-responsive-item"
		        previous-text="上一页"
		        next-text="下一页"
		        first-text="首页"
		        last-text="尾页"
		        max-size="maxSize"
		        rotate="false" num-pages="numPages" ng-change="pageChanged()">
		    </pagination>		   
		</div>	
		
	</div>
</div>
</div>
 